package com.chuan.it_market.dao;

import com.chuan.it_market.pojo.entity.Buyer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface BuyerDao {
    int deleteByPrimaryKey(Integer bno);

    int insert(Buyer record);

    int insertSelective(Buyer record);

    Buyer selectByPrimaryKey(Integer bno);

    int updateByPrimaryKeySelective(Buyer record);

    int updateByPrimaryKey(Buyer record);

    Buyer selectBuyerByPhone(@Param("phone") String phone);

    Buyer selectByPhoneAndPassword(@Param("phone") String phone, @Param("password") String password);

    void updatePasswordBybno(@Param("bno") Integer  bno, @Param("newPassword") String newPassword);
}